package net.spacebeeshooter.gui;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

import net.spacebeeshooter.items.Item;

public class EditorPanel extends JPanel {
	private static final long serialVersionUID = 8972949345640239892L;
	
	private ItemTable itemTable;
	
	public EditorPanel(Item item) {
		setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		itemTable = new ItemTable(item);
		add(itemTable.getTableHeader());
		add(itemTable);
	}

	public ItemTable getItemTable() {
		return itemTable;
	}
}
